<script type="text/javascript" charset="utf-8">
    function hideUrl() {
        $("#imageUrl-label").hide();
        $("#imageUrl").hide();
    }

    function showUrl() {
        $("#imageUrl-label").fadeIn();
        $("#imageUrl").fadeIn();
    }

    function showUpload() {
        $("#imageUpload-label").fadeIn();
        $("#imageUpload").fadeIn();
    }

    function hideUpload() {
        $("#imageUpload-label").hide();
        $("#imageUpload").hide();
    }

    $(document).ready(function() {
        hideUrl();
        hideUpload();
        $("#imageType-none").attr("checked", "checked");
        $("#imageType-url").click(function() {
            showUrl();
            hideUpload();
        });
        
        $("#imageType-upload").click(function() {
            hideUrl();
            showUpload();
        });

        $("#imageType-none").click(function() {
            hideUrl();
            hideUpload();
        });
    });
</script>
<h2>Add a group</h2>
<?php
    echo "<span style='color:red;'>" . $this->form->getDescription() . "</span>";
    echo $this->form;
?>